package com.yaorange.nongjt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yaorange.nongjt.mapper.NjtCertificateManagementMapper;
import com.yaorange.nongjt.domain.NjtCertificateManagement;
import com.yaorange.nongjt.service.INjtCertificateManagementService;

/**
 * 合格证打印列表Service业务层处理
 * 
 * @author zly
 * @date 2025-03-07
 */
@Service
public class NjtCertificateManagementServiceImpl implements INjtCertificateManagementService 
{
    @Autowired
    private NjtCertificateManagementMapper njtCertificateManagementMapper;

    /**
     * 查询合格证打印列表
     * 
     * @param recordId 合格证打印列表主键
     * @return 合格证打印列表
     */
    @Override
    public NjtCertificateManagement selectNjtCertificateManagementByRecordId(String recordId)
    {
        return njtCertificateManagementMapper.selectNjtCertificateManagementByRecordId(recordId);
    }

    /**
     * 查询合格证打印列表列表
     * 
     * @param njtCertificateManagement 合格证打印列表
     * @return 合格证打印列表
     */
    @Override
    public List<NjtCertificateManagement> selectNjtCertificateManagementList(NjtCertificateManagement njtCertificateManagement)
    {
        return njtCertificateManagementMapper.selectNjtCertificateManagementList(njtCertificateManagement);
    }

    /**
     * 新增合格证打印列表
     * 
     * @param njtCertificateManagement 合格证打印列表
     * @return 结果
     */
    @Override
    public int insertNjtCertificateManagement(NjtCertificateManagement njtCertificateManagement)
    {
        return njtCertificateManagementMapper.insertNjtCertificateManagement(njtCertificateManagement);
    }

    /**
     * 修改合格证打印列表
     * 
     * @param njtCertificateManagement 合格证打印列表
     * @return 结果
     */
    @Override
    public int updateNjtCertificateManagement(NjtCertificateManagement njtCertificateManagement)
    {
        return njtCertificateManagementMapper.updateNjtCertificateManagement(njtCertificateManagement);
    }

    /**
     * 批量删除合格证打印列表
     * 
     * @param recordIds 需要删除的合格证打印列表主键
     * @return 结果
     */
    @Override
    public int deleteNjtCertificateManagementByRecordIds(String[] recordIds)
    {
        return njtCertificateManagementMapper.deleteNjtCertificateManagementByRecordIds(recordIds);
    }

    /**
     * 删除合格证打印列表信息
     * 
     * @param recordId 合格证打印列表主键
     * @return 结果
     */
    @Override
    public int deleteNjtCertificateManagementByRecordId(String recordId)
    {
        return njtCertificateManagementMapper.deleteNjtCertificateManagementByRecordId(recordId);
    }
}
